package com.itheima.domain.db;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor//公告类
public class Announcement implements Serializable {
    private Long id;//编号
    private String title;//标题
    private String description;//描述
    @TableField(fill = FieldFill.INSERT)
    private Date created;//发布时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;//修改时间
}
